package git.LengNanJun.day319.demo1;

public class Animal {
    public String name;   //名字
    public String color;  // 颜色
    public String type;  //种类
    public int age;   // 年龄

    public Animal(String name, String color, String type, int age) {
        this.name = name;
        this.color = color;
        this.type = type;
        this.age = age;
    }

    public void sleep() {
        System.out.println("睡觉");
    }

    public void eat() {
        System.out.println("吃东西");
    }

    public void cry() {
        System.out.println("叫");
    }
}
